package com.taoyuan.hotel.service.intf;

import com.taoyuan.hotel.entity.Department;
import com.taoyuan.hotel.vo.PageBean;
import com.taoyuan.hotel.vo.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface DepartmentService {
    //新增
    R save(Department department);
    //查询
    PageBean queryPage(int page, int limit);
    //查询
    List<Department> queryAll();
    //删除
    R del(int id);
    //修改
    R update(Department department);
    //查询，带条件
    PageBean queryPageWhere(String deptName,int page,int limit);
    //批量删除
    R delBatch(int[] ids);
    //实现导入
    R saveBatch(MultipartFile file) throws IOException;

    R selectTJ();
}
